package W1025;

import java.util.*;

public class Test07 {
	public static void main(String[] args) {
		int nums1[] = { 1, 2, 3 };
		int nums2[] = { 1, 2, 3 };
		System.out.println(nums1 == nums2);
		boolean b = Arrays.equals(nums1, nums2);
		System.out.println(b);
		int nums3[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
		// Arrays.fill(nums3,0);
		// System.out.println(Arrays.toString(nums3));
		int nums4[] = Arrays.copyOf(nums3, 10);
		System.out.println(nums4.length);
		System.out.println(Arrays.toString(nums4));
		int index = Arrays.binarySearch(nums3, 5);
		System.out.println(index);
	}
}
